<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
<form method="post" action="http://localhost:8083/Demo0318/upload.do" enctype="multipart/form-data">
    用户名:<input type="text" name="username"/><br/>
    头像:<input type="file" name="photo"/><br/>
    <input type="submit" value="上传"/>
</form>
<h1>注册成功</h1>
<img src="http://localhost:8083/upload/4.jpg"/>
</body>
</html>